42 #ifndef PRINTER_H_INCLUDED 43 #define PRINTER_H_INCLUDED 48 #ifdef SUPPORT_64_BIT_MATH 72 #define PRINTER_FLAG0_STEPPER_DISABLED 1 73 #define PRINTER_FLAG0_SEPERATE_EXTRUDER_INT 2 74 #define PRINTER_FLAG0_TEMPSENSOR_DEFECT 4 75 #define PRINTER_FLAG0_FORCE_CHECKSUM 8 76 #define PRINTER_FLAG0_MANUAL_MOVE_MODE 16 77 #define PRINTER_FLAG0_AUTOLEVEL_ACTIVE 32 78 #define PRINTER_FLAG0_ZPROBEING 64 79 #define PRINTER_FLAG0_LARGE_MACHINE 128 80 #define PRINTER_FLAG1_HOMED_ALL 1 81 #define PRINTER_FLAG1_AUTOMOUNT 2 82 #define PRINTER_FLAG1_ANIMATION 4 83 #define PRINTER_FLAG1_ALLKILLED 8 84 #define PRINTER_FLAG1_UI_ERROR_MESSAGE 16 85 #define PRINTER_FLAG1_NO_DESTINATION_CHECK 32 86 #define PRINTER_FLAG1_POWER_ON 64 87 #define PRINTER_FLAG1_ALLOW_COLD_EXTRUSION 128 88 #define PRINTER_FLAG2_BLOCK_RECEIVING 1 89 #define PRINTER_FLAG2_AUTORETRACT 2 90 #define PRINTER_FLAG2_RESET_FILAMENT_USAGE 4 91 #define PRINTER_FLAG2_IGNORE_M106_COMMAND 8 92 #define PRINTER_FLAG2_DEBUG_JAM 16 93 #define PRINTER_FLAG2_JAMCONTROL_DISABLED 32 94 #define PRINTER_FLAG2_HOMING 64 95 #define PRINTER_FLAG2_ALL_E_MOTORS 128 // Set all e motors flag 96 #define PRINTER_FLAG3_X_HOMED 1 97 #define PRINTER_FLAG3_Y_HOMED 2 98 #define PRINTER_FLAG3_Z_HOMED 4 99 #define PRINTER_FLAG3_PRINTING 8 // set explicitly with M530 100 #define PRINTER_FLAG3_AUTOREPORT_TEMP 16 101 #define PRINTER_FLAG3_SUPPORTS_STARTSTOP 32 102 #define PRINTER_FLAG3_DOOR_OPEN 64 105 #define PRINTER_INTERRUPT_EVENT_JAM_DETECTED 1 106 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL0 2 107 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL1 3 108 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL2 4 109 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL3 5 110 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL4 6 111 #define PRINTER_INTERRUPT_EVENT_JAM_SIGNAL5 7 113 #define HOME_DISTANCE_STEPS (Printer::zMaxSteps-Printer::zMinSteps+1000) 114 #define HOME_DISTANCE_MM (HOME_DISTANCE_STEPS * invAxisStepsPerMM[Z_AXIS]) 116 #define towerAMaxSteps Printer::xMaxSteps 117 #define towerBMaxSteps Printer::yMaxSteps 118 #define towerCMaxSteps Printer::zMaxSteps 119 #define towerAMinSteps Printer::xMinSteps 120 #define towerBMinSteps Printer::yMinSteps 121 #define towerCMinSteps Printer::zMinSteps 127 float z(
float x,
float y) {
128 return a * x + y * b + c;
136 #ifndef DEFAULT_PRINTER_MODE 138 #define DEFAULT_PRINTER_MODE PRINTER_MODE_FFF 139 #elif defined(SUPPORT_LASER) && SUPPORT_LASER 140 #define DEFAULT_PRINTER_MODE PRINTER_MODE_LASER 141 #elif defined(SUPPORT_CNC) && SUPPORT_CNC 142 #define DEFAULT_PRINTER_MODE PRINTER_MODE_CNC 144 #error No supported printer mode compiled 237 #if USE_ADVANCE || defined(DOXYGEN) 242 #if ENABLE_QUADRATIC_ADVANCE || defined(DOXYGEN) 247 #if DUAL_X_RESOLUTION || defined(DOXYGEN) 251 static float axisStepsPerMM[];
252 static float invAxisStepsPerMM[];
253 static float maxFeedrate[];
254 static float homingFeedrate[];
256 static float maxAccelerationMMPerSquareSecond[];
257 static float maxTravelAccelerationMMPerSquareSecond[];
258 static unsigned long maxPrintAccelerationStepsPerSquareSecond[];
259 static unsigned long maxTravelAccelerationStepsPerSquareSecond[];
281 #if NONLINEAR_SYSTEM || defined(DOXYGEN) 300 #if !NONLINEAR_SYSTEM || defined(FAST_COREXYZ) || defined(DOXYGEN) 304 #if DRIVE_SYSTEM != DELTA || defined(DOXYGEN) 307 #if FEATURE_Z_PROBE || MAX_HARDWARE_ENDSTOP_Z || NONLINEAR_SYSTEM || defined(DOXYGEN) 310 #if DRIVE_SYSTEM == DELTA || defined(DOXYGEN) 314 #if SOFTWARE_LEVELING || defined(DOXYGEN) 315 static int32_t levelingP1[3];
316 static int32_t levelingP2[3];
317 static int32_t levelingP3[3];
319 #if FEATURE_AUTOLEVEL || defined(DOXYGEN) 320 static float autolevelTransformation[9];
322 #if FAN_THERMO_PIN > -1 || defined(DOXYGEN) 326 #if LAZY_DUAL_X_AXIS || defined(DOXYGEN) 329 #if FEATURE_BABYSTEPPING || defined(DOXYGEN) 352 #if DRIVE_SYSTEM!=DELTA || defined(DOXYGEN) 362 #if ENABLE_BACKLASH_COMPENSATION || defined(DOXYGEN) 368 #if MULTI_ZENDSTOP_HOMING || defined(DOXYGEN) 376 #if (GANTRY && !defined(FAST_COREXYZ)) || defined(DOXYGEN) 380 #ifdef DEBUG_SEGMENT_LENGTH 381 static float maxRealSegmentLength;
383 #ifdef DEBUG_REAL_JERK 384 static float maxRealJerk;
389 static char printName[21];
394 static void handleInterruptEvent();
397 if(highPriority || interruptEvent == 0)
398 interruptEvent = evt;
400 static void reportPrinterMode();
409 return (menuMode & mode) == mode;
411 static void setDebugLevel(uint8_t newLevel);
412 static void toggleEcho();
413 static void toggleInfo();
414 static void toggleErrors();
415 static void toggleDryRun();
416 static void toggleCommunication();
417 static void toggleNoMoves();
418 static void toggleEndStop();
423 return ((debugLevel & 1) != 0);
427 return ((debugLevel & 2) != 0);
431 return ((debugLevel & 4) != 0);
435 return ((debugLevel & 8) != 0);
439 return ((debugLevel & 16) != 0);
443 return ((debugLevel & 32) != 0);
447 return ((debugLevel & 64) != 0);
451 return (debugLevel & flags);
455 setDebugLevel(debugLevel | flags);
459 setDebugLevel(debugLevel & ~flags);
462 static void setFanSpeedDirectly(uint8_t speed);
464 static void setFan2SpeedDirectly(uint8_t speed);
467 #if (X_ENABLE_PIN > -1) 470 #if (FEATURE_TWO_XSTEPPER || DUAL_X_AXIS) && (X2_ENABLE_PIN > -1) 477 #if (Y_ENABLE_PIN > -1) 480 #if FEATURE_TWO_YSTEPPER && (Y2_ENABLE_PIN > -1) 486 #if (Z_ENABLE_PIN > -1) 489 #if FEATURE_TWO_ZSTEPPER && (Z2_ENABLE_PIN > -1) 492 #if FEATURE_THREE_ZSTEPPER && (Z3_ENABLE_PIN > -1) 495 #if FEATURE_FOUR_ZSTEPPER && (Z4_ENABLE_PIN > -1) 502 #if (X_ENABLE_PIN > -1) 505 #if (FEATURE_TWO_XSTEPPER || DUAL_X_AXIS) && (X2_ENABLE_PIN > -1) 512 #if (Y_ENABLE_PIN > -1) 515 #if FEATURE_TWO_YSTEPPER && (Y2_ENABLE_PIN > -1) 521 #if (Z_ENABLE_PIN > -1) 524 #if FEATURE_TWO_ZSTEPPER && (Z2_ENABLE_PIN > -1) 527 #if FEATURE_THREE_ZSTEPPER && (Z3_ENABLE_PIN > -1) 530 #if FEATURE_FOUR_ZSTEPPER && (Z4_ENABLE_PIN > -1) 538 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS 543 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS 552 #if FEATURE_TWO_YSTEPPER 557 #if FEATURE_TWO_YSTEPPER 565 #if FEATURE_TWO_ZSTEPPER 568 #if FEATURE_THREE_ZSTEPPER 571 #if FEATURE_FOUR_ZSTEPPER 576 #if FEATURE_TWO_ZSTEPPER 579 #if FEATURE_THREE_ZSTEPPER 582 #if FEATURE_FOUR_ZSTEPPER 627 bool b = isXHomed() && isYHomed() && isZHomed();
731 Com::printFLN(b ? Com::tPauseCommunication : Com::tContinueCommunication);
764 static bool updateDoorOpen();
799 #if EXTRUDER_JAM_CONTROL 801 Extruder::markAllUnjammed();
808 setAnimation(!isAnimation());
811 return (unitIsInches ? x * 25.4 : x);
821 #if FAN_BOARD_PIN > -1 823 #endif // FAN_BOARD_PIN 844 static void setAutolevelActive(
bool on);
852 #if (GANTRY) && !defined(FAST_COREXYZ) 855 #if FEATURE_TWO_XSTEPPER 859 }
else if(motorX >= 2) {
861 #if FEATURE_TWO_XSTEPPER 866 if(motorYorZ <= -2) {
868 #if FEATURE_TWO_YSTEPPER 872 }
else if(motorYorZ >= 2) {
874 #if FEATURE_TWO_YSTEPPER 882 #if (GANTRY) && !defined(FAST_COREXYZ) 885 #if FEATURE_TWO_XSTEPPER 889 }
else if(motorX >= 2) {
891 #if FEATURE_TWO_XSTEPPER 896 if(motorYorZ <= -2) {
898 #if FEATURE_TWO_ZSTEPPER 901 #if FEATURE_THREE_ZSTEPPER 904 #if FEATURE_FOUR_ZSTEPPER 908 }
else if(motorYorZ >= 2) {
910 #if FEATURE_TWO_ZSTEPPER 913 #if FEATURE_THREE_ZSTEPPER 916 #if FEATURE_FOUR_ZSTEPPER 925 #if FEATURE_DITTO_PRINTING 926 if(Extruder::dittoMode) {
939 #if FEATURE_TWO_XSTEPPER 946 #if FEATURE_TWO_YSTEPPER 951 #if MULTI_ZENDSTOP_HOMING 955 #if FEATURE_TWO_ZSTEPPER 960 #if FEATURE_THREE_ZSTEPPER 965 #if FEATURE_FOUR_ZSTEPPER 972 #if FEATURE_TWO_ZSTEPPER 975 #if FEATURE_THREE_ZSTEPPER 978 #if FEATURE_FOUR_ZSTEPPER 985 #if FEATURE_TWO_XSTEPPER || DUAL_X_AXIS 989 #if FEATURE_TWO_YSTEPPER 993 #if FEATURE_TWO_ZSTEPPER 996 #if FEATURE_THREE_ZSTEPPER 999 #if FEATURE_FOUR_ZSTEPPER 1005 #if ALLOW_QUADSTEPPING 1023 #if DRIVE_SYSTEM == XZ_GANTRY || DRIVE_SYSTEM == ZX_GANTRY 1043 return currentPosition[
X_AXIS];
1047 return currentPosition[
Y_AXIS];
1051 return currentPosition[
Z_AXIS];
1055 xp = currentPosition[
X_AXIS];
1056 yp = currentPosition[
Y_AXIS];
1057 zp = currentPosition[
Z_AXIS];
1060 #if STEPPER_HIGH_DELAY>0 1064 static void updateDerivedParameter();
1067 static void constrainDestinationCoords();
1070 static void updateCurrentPosition(
bool copyLastCmd =
false);
1071 static void updateCurrentPositionSteps();
1079 static uint8_t setDestinationStepsFromGCode(
GCode *com);
1092 static uint8_t moveTo(
float x,
float y,
float z,
float e,
float f);
1106 static uint8_t moveToReal(
float x,
float y,
float z,
float e,
float f,
bool pathOptimize =
true);
1107 static void kill(uint8_t only_steppers);
1108 static void updateAdvanceFlags();
1109 static void setup();
1110 static void defaultLoopActions();
1111 static void homeAxis(
bool xaxis,
bool yaxis,
bool zaxis);
1112 static void setOrigin(
float xOff,
float yOff,
float zOff);
1123 static bool isPositionAllowed(
float x,
float y,
float z);
1130 #if NONLINEAR_SYSTEM || defined(DOXYGEN) 1132 currentNonlinearPositionSteps[
A_TOWER] = xaxis;
1133 currentNonlinearPositionSteps[
B_TOWER] = yaxis;
1134 currentNonlinearPositionSteps[
C_TOWER] = zaxis;
1136 static void deltaMoveToTopEndstops(
float feedrate);
1138 #if MAX_HARDWARE_ENDSTOP_Z || defined(DOXYGEN) 1139 static float runZMaxProbe();
1141 #if FEATURE_Z_PROBE || defined(DOXYGEN) 1142 static bool startProbing(
bool runScript,
bool enforceStartHeight =
true);
1143 static void finishProbing();
1144 static float runZProbe(
bool first,
bool last, uint8_t repeat =
Z_PROBE_REPETITIONS,
bool runStartScript =
true,
bool enforceStartHeight =
true);
1145 static void measureZProbeHeight(
float curHeight);
1146 static void waitForZProbeStart();
1147 static float bendingCorrectionAt(
float x,
float y);
1151 static void transformToPrinter(
float x,
float y,
float z,
float &transX,
float &transY,
float &transZ);
1152 static void transformFromPrinter(
float x,
float y,
float z,
float &transX,
float &transY,
float &transZ);
1153 #if FEATURE_AUTOLEVEL || defined(DOXYGEN) 1154 static void resetTransformationMatrix(
bool silent);
1156 static void buildTransformationMatrix(
Plane &plane);
1158 #if DISTORTION_CORRECTION || defined(DOXYGEN) 1159 static void measureDistortion(
void);
1162 static void MemoryPosition();
1163 static void GoToMemoryPosition(
bool x,
bool y,
bool z,
bool e,
float feed);
1164 static void zBabystep();
1170 wizardStack[wizardStackPos++] = v;
1173 return wizardStack[--wizardStackPos];
1175 static void showConfiguration();
1176 static void setCaseLight(
bool on);
1177 static void reportCaseLightStatus();
1178 #if JSON_OUTPUT || defined(DOXYGEN) 1179 static void showJSONStatus(
int type);
1181 static void homeXAxis();
1182 static void homeYAxis();
1183 static void homeZAxis();
1184 static void pausePrint();
1185 static void continuePrint();
1186 static void stopPrint();
1187 #if FEATURE_Z_PROBE || defined(DOXYGEN) 1196 static void prepareForProbing();
1200 #endif // PRINTER_H_INCLUDED static float radius0
Definition: Printer.h:298
#define PWM_FAN1
Definition: Repetier.h:889
static float memoryZ
Definition: Printer.h:373
#define Y_ENABLE_PIN
Definition: pins.h:3060
static INLINE uint8_t isLargeMachine()
Definition: Printer.h:601
static int feedrateMultiply
Multiplier for feedrate in percent (factor 1 = 100)
Definition: Printer.h:348
static INLINE void setAnimation(uint8_t b)
Definition: Printer.h:685
static INLINE void setAllSteppersDiabled()
Definition: Printer.h:816
static uint8_t flag3
Definition: Printer.h:269
wizardVar(uint32_t _f)
Definition: Printer.h:65
static INLINE speed_t updateStepsPerTimerCall(speed_t vbase)
Definition: Printer.h:1003
static float thermoMaxTemp
Definition: Printer.h:324
static INLINE void setHoming(uint8_t b)
Definition: Printer.h:770
static INLINE bool debugNoMoves()
Definition: Printer.h:442
#define PRINTER_FLAG0_ZPROBEING
Definition: Printer.h:78
#define PRINTER_FLAG3_PRINTING
Definition: Printer.h:99
int8_t c
Definition: Printer.h:59
static INLINE void enableYStepper()
Enable stepper motor for y direction.
Definition: Printer.h:511
static INLINE void disableAllowedStepper()
Definition: Printer.h:1022
#define X_DIR_PIN
Definition: pins.h:3053
static int maxLayer
Definition: Printer.h:388
#define PRINTER_FLAG1_POWER_ON
Definition: Printer.h:86
#define Z_ENABLE_PIN
Definition: pins.h:3066
static INLINE uint8_t isHomedAll()
Definition: Printer.h:617
#define Z3_DIR_PIN
Definition: Configuration.h:1393
static INLINE uint8_t isPrinting()
Definition: Printer.h:743
static INLINE void resetWizardStack()
Definition: Printer.h:1166
static INLINE void startYStep()
Definition: Printer.h:944
#define PRINTER_FLAG3_Z_HOMED
Definition: Printer.h:98
static INLINE void setManualMoveMode(bool on)
Definition: Printer.h:838
static INLINE void unsetHomedAll()
Definition: Printer.h:621
static floatLong deltaDiagonalStepsSquaredC
Definition: Printer.h:286
#define PRINTER_FLAG2_AUTORETRACT
Definition: Printer.h:89
static float offsetZ2
Z-offset without rotation correction. Required for z probe corrections.
Definition: Printer.h:358
static void printFLN(FSTRINGPARAM(text))
Definition: Communication.cpp:526
static INLINE void setUIErrorMessage(uint8_t b)
Definition: Printer.h:693
static uint32_t msecondsPrinting
Milliseconds of printing time (means time with heated extruder)
Definition: Printer.h:360
static INLINE void debugSet(uint8_t flags)
Definition: Printer.h:454
static INLINE void setJamcontrolDisabled(uint8_t b)
Definition: Printer.h:798
static INLINE void setLargeMachine(uint8_t b)
Definition: Printer.h:605
static bool sledParked
Definition: Printer.h:327
#define Y_DIR_PIN
Definition: pins.h:3059
static uint8_t backlashDir
Definition: Printer.h:366
static INLINE void setBlockingReceive(uint8_t b)
Definition: Printer.h:729
wizardVar(uint8_t _f)
Definition: Printer.h:69
#define DISABLE_X
Definition: Configuration.h:884
static INLINE uint8_t isXHomed()
Definition: Printer.h:631
static volatile int extruderStepsNeeded
This many extruder steps are still needed, <0 = reverse steps needed.
Definition: Printer.h:238
wizardVar(int8_t _f)
Definition: Printer.h:68
#define READ(IO)
Read a pin wrapper.
Definition: fastio.h:46
static float progress
Definition: Printer.h:390
static INLINE void setAutoretract(uint8_t b)
Definition: Printer.h:738
static INLINE void setYDirection(bool positive)
Definition: Printer.h:549
#define PRINTER_FLAG2_HOMING
Definition: Printer.h:94
int32_t l
Definition: Printer.h:55
static float yMin
Definition: Printer.h:344
#define PRINTER_FLAG1_ALLOW_COLD_EXTRUSION
Definition: Printer.h:87
#define START_STEP_WITH_HIGH
Definition: Repetier.h:402
static INLINE bool isManualMoveMode()
Definition: Printer.h:835
#define PRINTER_FLAG2_JAMCONTROL_DISABLED
Definition: Printer.h:93
static INLINE uint8_t isAutoretract()
Definition: Printer.h:734
static int8_t motorYorZ
Definition: Printer.h:378
static uint8_t mode
Definition: Printer.h:264
static INLINE uint8_t isAdvanceActivated()
Definition: Printer.h:609
#define PRINTER_FLAG2_DEBUG_JAM
Definition: Printer.h:92
static INLINE bool debugErrors()
Definition: Printer.h:430
static int32_t deltaCPosYSteps
Definition: Printer.h:294
static INLINE void setZHomed(uint8_t b)
Definition: Printer.h:653
#define Z2_ENABLE_PIN
Definition: Configuration.h:1389
#define PRINTER_FLAG0_MANUAL_MOVE_MODE
Definition: Printer.h:76
#define PRINTER_FLAG3_X_HOMED
Definition: Printer.h:96
static INLINE void setDebugJam(uint8_t b)
Definition: Printer.h:789
static INLINE float realYPosition()
Definition: Printer.h:1046
static int32_t xMinSteps
For software endstops, limit of move in negative direction.
Definition: Printer.h:338
#define PRINTER_FLAG1_AUTOMOUNT
Definition: Printer.h:81
#define X_ENABLE_ON
Definition: Configuration.h:879
static int32_t yMaxSteps
For software endstops, limit of move in positive direction.
Definition: Printer.h:336
static int16_t travelMovesPerSecond
Definition: Printer.h:296
static INLINE void insertStepperHighDelay()
Definition: Printer.h:1059
static INLINE bool getXDirection()
Definition: Printer.h:596
static int32_t deltaBPosXSteps
Definition: Printer.h:291
uint16_t speed_t
Definition: HAL.h:156
static INLINE uint8_t isAllEMotors()
Definition: Printer.h:773
static int currentLayer
Definition: Printer.h:387
static INLINE bool debugEcho()
Definition: Printer.h:422
static int32_t deltaBPosYSteps
Definition: Printer.h:292
#define WRITE(IO, v)
Write to a pin wrapper.
Definition: fastio.h:48
#define PRINTER_FLAG3_DOOR_OPEN
Definition: Printer.h:102
static INLINE void disableXStepper()
Disable stepper motor for x direction.
Definition: Printer.h:466
static INLINE void realPosition(float &xp, float &yp, float &zp)
copies currentPosition to parameter.
Definition: Printer.h:1054
static float offsetZ
Z-offset for different tool positions.
Definition: Printer.h:357
#define PRINTER_FLAG1_ALLKILLED
Definition: Printer.h:83
static float deltaMaxRadiusSquared
Definition: Printer.h:287
float z(float x, float y)
Definition: Printer.h:127
wizardVar()
Definition: Printer.h:62
static INLINE void setSupportStartStop(uint8_t b)
Definition: Printer.h:756
static INLINE void setAutoreportTemp(uint8_t b)
Definition: Printer.h:661
static INLINE uint8_t isAutoreportTemp()
Definition: Printer.h:657
#define PRINTER_FLAG1_UI_ERROR_MESSAGE
Definition: Printer.h:84
static float zBedOffset
Definition: Printer.h:267
static INLINE uint8_t isHoming()
Definition: Printer.h:766
static int16_t zBabysteps
Definition: Printer.h:331
static floatLong deltaDiagonalStepsSquaredA
Definition: Printer.h:284
static INLINE uint8_t isBlockingReceive()
Definition: Printer.h:725
static INLINE wizardVar popWizardVar()
Definition: Printer.h:1172
#define X_STEP_PIN
Definition: pins.h:3052
#define PRINTER_FLAG0_STEPPER_DISABLED
Definition: Printer.h:72
static uint8_t unitIsInches
0 = Units are mm, 1 = units are inches.
Definition: Printer.h:263
#define Y2_ENABLE_PIN
Definition: Configuration.h:1384
static int32_t deltaAPosXSteps
Definition: Printer.h:289
#define Z4_DIR_PIN
Definition: Configuration.h:1398
#define Z_ENABLE_ON
Definition: Configuration.h:881
Handle distortion related stuff.
Definition: Distortion.h:33
static float backlashZ
Definition: Printer.h:365
static INLINE bool isAutolevelActive()
Definition: Printer.h:841
static INLINE void setDeltaPositions(long xaxis, long yaxis, long zaxis)
Definition: Printer.h:1131
static int32_t stepsRemainingAtYHit
Definition: Printer.h:312
static int32_t deltaCPosXSteps
Definition: Printer.h:293
int16_t i
Definition: Printer.h:57
#define INVERT_Z_DIR
Definition: Configuration.h:898
#define PRINTER_FLAG1_HOMED_ALL
Definition: Printer.h:80
uint8_t uc
Definition: Printer.h:60
static INLINE void disableZStepper()
Disable stepper motor for z direction.
Definition: Printer.h:485
static INLINE void setAdvanceActivated(uint8_t b)
Definition: Printer.h:613
static speed_t vMaxReached
Maximum reached speed.
Definition: Printer.h:359
static INLINE void setAutomount(uint8_t b)
Definition: Printer.h:677
static float zLength
Definition: Printer.h:345
#define PRINTER_FLAG3_Y_HOMED
Definition: Printer.h:97
uint32_t ul
Definition: Printer.h:56
static INLINE void setMenuMode(uint16_t mode, bool on)
Definition: Printer.h:401
static INLINE uint8_t isPowerOn()
Definition: Printer.h:705
#define BOARD_FAN_SPEED
Definition: Configuration.h:1665
static float thermoMinTemp
Definition: Printer.h:323
static float backlashY
Definition: Printer.h:364
static uint16_t menuMode
Definition: Printer.h:246
static Extruder * current
Definition: Extruder.h:233
static INLINE uint8_t isYHomed()
Definition: Printer.h:640
wizardVar(uint16_t _f)
Definition: Printer.h:67
static uint32_t stepNumber
Step number in current move.
Definition: Printer.h:272
static INLINE bool debugDryrun()
Definition: Printer.h:434
static ufast8_t maxExtruderSpeed
Timer delay for end extruder speed.
Definition: Printer.h:239
static floatLong deltaDiagonalStepsSquaredB
Definition: Printer.h:285
static INLINE void startZStep()
Definition: Printer.h:950
static int32_t yMinSteps
For software endstops, limit of move in negative direction.
Definition: Printer.h:339
#define STEP_DOUBLER_FREQUENCY
Definition: Configuration.h:1173
static INLINE void setAnyTempsensorDefect()
Definition: Printer.h:828
#define TOWER_ARRAY
Definition: Repetier.h:134
static fast8_t multiZHomeFlags
Definition: Printer.h:369
static float extrudeMultiplyError
Accumulated error during extrusion.
Definition: Printer.h:279
static INLINE void toggleAnimation()
Definition: Printer.h:807
Definition: Printer.h:234
bool runBedLeveling(int save)
static INLINE void disableYStepper()
Disable stepper motor for y direction.
Definition: Printer.h:476
#define WIZARD_STACK_SIZE
Definition: Repetier.h:93
static int32_t zMaxStepsAdj
Definition: Printer.h:302
#define INVERT_Y_DIR
Definition: Configuration.h:897
#define PWM_BOARD_FAN
Definition: Repetier.h:888
static INLINE float realXPosition()
Definition: Printer.h:1042
static uint8_t flag1
Definition: Printer.h:268
static int8_t motorX
Definition: Printer.h:377
static int32_t zMinSteps
For software endstops, limit of move in negative direction.
Definition: Printer.h:340
static int32_t deltaFloorSafetyMarginSteps
Definition: Printer.h:288
static INLINE uint8_t isStartStopSupported()
Definition: Printer.h:752
static INLINE uint8_t isNoDestinationCheck()
Definition: Printer.h:697
static INLINE bool debugCommunication()
Definition: Printer.h:438
static INLINE void executeXYGantrySteps()
Definition: Printer.h:851
#define Z_AXIS
Definition: Repetier.h:122
static INLINE void setXHomed(uint8_t b)
Definition: Printer.h:635
static INLINE uint8_t isZHomed()
Definition: Printer.h:649
static float yLength
Definition: Printer.h:343
static INLINE void updateHomedAll()
Definition: Printer.h:626
uint8_t ufast8_t
Definition: HAL.h:161
static float memoryY
Definition: Printer.h:372
#define Z_PROBE_REPETITIONS
Definition: Configuration.h:1478
#define Y2_STEP_PIN
Definition: Configuration.h:1382
#define PRINTER_FLAG0_TEMPSENSOR_DEFECT
Definition: Printer.h:74
wizardVar(int32_t _f)
Definition: Printer.h:64
static INLINE void setZProbingActive(bool on)
Definition: Printer.h:845
static float extrusionFactor
Extrusion multiply factor.
Definition: Printer.h:280
static INLINE void setInterruptEvent(uint8_t evt, bool highPriority)
Definition: Printer.h:396
static INLINE void setXDirection(bool positive)
Definition: Printer.h:535
static int16_t zBabystepsMissing
Definition: Printer.h:330
static INLINE bool isZProbingActive()
Definition: Printer.h:848
static INLINE void setAllEMotors(uint8_t b)
Definition: Printer.h:777
static INLINE bool isMenuMode(uint8_t mode)
Definition: Printer.h:408
static INLINE uint8_t isDoorOpen()
Definition: Printer.h:760
static INLINE bool debugFlag(uint8_t flags)
Definition: Printer.h:450
static int32_t stepsRemainingAtXHit
Definition: Printer.h:311
static fast8_t wizardStackPos
Definition: Printer.h:391
#define PWM_FAN2
Definition: Repetier.h:890
wizardVar(int16_t _f)
Definition: Printer.h:66
static float maxZJerk
Maximum allowed jerk in z direction in mm/s.
Definition: Printer.h:353
static INLINE uint8_t isAnimation()
Definition: Printer.h:681
#define Z_DIR_PIN
Definition: pins.h:3065
#define Z3_STEP_PIN
Definition: Configuration.h:1392
#define Z_STEP_PIN
Definition: pins.h:3064
uint32_t millis_t
Definition: HAL.h:158
static float offsetY
Y-offset for different tool positions.
Definition: Printer.h:356
#define Z4_STEP_PIN
Definition: Configuration.h:1397
static INLINE uint8_t isDebugJam()
Definition: Printer.h:781
static INLINE uint8_t isAllKilled()
Definition: Printer.h:665
static INLINE void startXStep()
Definition: Printer.h:923
#define X2_DIR_PIN
Definition: Configuration.h:1370
#define DISABLE_Z
Definition: Configuration.h:886
#define E_TOWER_ARRAY
Definition: Repetier.h:135
#define Z2_STEP_PIN
Definition: Configuration.h:1387
uint32_t l
Definition: Printer.h:47
static INLINE void setZDirection(bool positive)
Definition: Printer.h:562
static int advanceStepsSet
Definition: Printer.h:241
static INLINE bool debugInfo()
Definition: Printer.h:426
static INLINE void setNoDestinationCheck(uint8_t b)
Definition: Printer.h:701
static INLINE void setPowerOn(uint8_t b)
Definition: Printer.h:709
static uint8_t fanSpeed
Definition: Printer.h:265
#define INVERT_X_DIR
Definition: Configuration.h:896
#define X_AXIS
Definition: Repetier.h:120
static INLINE int getFanSpeed()
Definition: Printer.h:1124
Definition: Printer.h:123
static int32_t xMaxSteps
For software endstops, limit of move in positive direction.
Definition: Printer.h:335
static INLINE bool debugEndStop()
Definition: Printer.h:446
static float backlashX
Definition: Printer.h:363
static INLINE uint8_t getDebugLevel()
Definition: Printer.h:419
static INLINE void setPrinting(uint8_t b)
Definition: Printer.h:747
static INLINE void debugReset(uint8_t flags)
Definition: Printer.h:458
#define C_TOWER
Definition: Repetier.h:133
#define PRINTER_FLAG3_SUPPORTS_STARTSTOP
Definition: Printer.h:101
#define X2_STEP_PIN
Definition: Configuration.h:1369
static INLINE uint8_t isDebugJamOrDisabled()
Definition: Printer.h:785
static INLINE void unsetAllSteppersDisabled()
Definition: Printer.h:819
#define PRINTER_FLAG2_ALL_E_MOTORS
Definition: Printer.h:95
static long advanceExecuted
Executed advance steps.
Definition: Printer.h:243
static float xLength
Definition: Printer.h:341
#define X_ENABLE_PIN
Definition: pins.h:3054
static INLINE void setAllKilled(uint8_t b)
Definition: Printer.h:669
int8_t fast8_t
Definition: HAL.h:160
static uint8_t interruptEvent
Event generated in interrupts that should/could be handled in main thread.
Definition: Printer.h:351
#define Y_ENABLE_ON
Definition: Configuration.h:880
#define INLINE
Definition: HAL.h:37
static INLINE uint8_t isAutomount()
Definition: Printer.h:673
#define Z3_ENABLE_PIN
Definition: Configuration.h:1394
#define Y_AXIS
Definition: Repetier.h:121
float c
Definition: Printer.h:126
#define MENU_MODE_PRINTING
Definition: Repetier.h:556
static INLINE void setColdExtrusionAllowed(uint8_t b)
Definition: Printer.h:717
uint8_t pwm_pos[NUM_PWM]
Definition: motion.cpp:78
static INLINE uint8_t isUIErrorMessage()
Definition: Printer.h:689
static int32_t zCorrectionStepsIncluded
Definition: Printer.h:305
#define Z_AXIS_ARRAY
Definition: Repetier.h:126
static float memoryX
Definition: Printer.h:371
static INLINE void pushWizardVar(wizardVar v)
Definition: Printer.h:1169
static float axisX1StepsPerMM
Definition: Printer.h:248
#define DISABLE_Y
Definition: Configuration.h:885
static INLINE bool getZDirection()
Definition: Printer.h:588
static uint32_t interval
Last step duration in ticks.
Definition: Printer.h:270
static void delayMicroseconds(unsigned int delayUs)
Definition: HAL.h:514
static float feedrate
Last requested feedrate.
Definition: Printer.h:347
#define PRINTER_FLAG0_LARGE_MACHINE
Definition: Printer.h:79
static unsigned int extrudeMultiply
Flow multiplier in percent (factor 1 = 100)
Definition: Printer.h:349
static float xMin
Definition: Printer.h:342
#define X2_ENABLE_PIN
Definition: Configuration.h:1371
static float offsetX
X-offset for different tool positions.
Definition: Printer.h:355
static float memoryE
Definition: Printer.h:374
static int32_t zMinStepsAdj
Definition: Printer.h:301
#define STEPPER_HIGH_DELAY
Definition: Configuration.h:1159
static float memoryF
Definition: Printer.h:375
static INLINE void unsetAnyTempsensorDefect()
Definition: Printer.h:832
#define PRINTER_FLAG1_NO_DESTINATION_CHECK
Definition: Printer.h:85
#define Y2_DIR_PIN
Definition: Configuration.h:1383
static INLINE float convertToMM(float x)
Definition: Printer.h:810
uint16_t ui
Definition: Printer.h:58
#define E_AXIS_ARRAY
Definition: Repetier.h:127
static float maxJerk
Maximum allowed jerk in mm/s.
Definition: Printer.h:350
static INLINE void enableZStepper()
Enable stepper motor for z direction.
Definition: Printer.h:520
float f
Definition: Printer.h:46
static millis_t lastTempReport
Definition: Printer.h:278
static fast8_t stepsPerTimerCall
Definition: Printer.h:266
static float zMin
Definition: Printer.h:346
static Distortion distortion
Definition: Printer.h:1160
float f
Definition: Printer.h:54
#define PRINTER_FLAG0_AUTOLEVEL_ACTIVE
Definition: Printer.h:77
static uint32_t timer
used for acceleration/deceleration timing
Definition: Printer.h:271
#define Y_STEP_PIN
Definition: pins.h:3058
#define Z4_ENABLE_PIN
Definition: Configuration.h:1399
#define PRINTER_FLAG1_ANIMATION
Definition: Printer.h:82
static INLINE void endXYZSteps()
Definition: Printer.h:983
static float axisX2StepsPerMM
Definition: Printer.h:249
static int32_t zMaxSteps
For software endstops, limit of move in positive direction.
Definition: Printer.h:337
wizardVar(float _f)
Definition: Printer.h:63
static uint8_t relativeCoordinateMode
Determines absolute (false) or relative Coordinates (true).
Definition: Printer.h:260
static INLINE uint8_t isColdExtrusionAllowed()
Definition: Printer.h:713
static INLINE uint8_t isJamcontrolDisabled()
Definition: Printer.h:794
static INLINE bool areAllSteppersDisabled()
Definition: Printer.h:813
static INLINE void executeXZGantrySteps()
Definition: Printer.h:881
static int32_t stepsRemainingAtZHit
Definition: Printer.h:308
#define PRINTER_FLAG0_SEPERATE_EXTRUDER_INT
Definition: Printer.h:73
#define B_TOWER
Definition: Repetier.h:132
#define PRINTER_FLAG3_AUTOREPORT_TEMP
Definition: Printer.h:100
static uint32_t maxInterval
Definition: Printer.h:255
static float filamentPrinted
mm of filament printed since counting started
Definition: Printer.h:361
static INLINE void setYHomed(uint8_t b)
Definition: Printer.h:644
static int32_t maxDeltaPositionSteps
Definition: Printer.h:282
#define PRINTER_FLAG2_BLOCK_RECEIVING
Definition: Printer.h:88
static int16_t printMovesPerSecond
Definition: Printer.h:297
static INLINE bool getYDirection()
Definition: Printer.h:592
static INLINE void enableXStepper()
Enable stepper motor for x direction.
Definition: Printer.h:501
static INLINE bool isAnyTempsensorDefect()
Definition: Printer.h:825
static INLINE int getFan2Speed()
Definition: Printer.h:1127
#define Z2_DIR_PIN
Definition: Configuration.h:1388
static int32_t deltaAPosYSteps
Definition: Printer.h:290
static INLINE float realZPosition()
Definition: Printer.h:1050
static uint8_t debugLevel
Bitfield defining debug output. 1 = echo, 2 = info, 4 = error, 8 = dry run., 16 = Only communication...
Definition: Printer.h:235
#define A_TOWER
Definition: Repetier.h:131
static uint8_t relativeExtruderCoordinateMode
Determines Absolute or Relative E Codes while in Absolute Coordinates mode. E is always relative in R...
Definition: Printer.h:261